<?php
/**
 * Created by PhpStorm.
 * User: wodrow
 * Date: 2018/11/1
 * Time: 16:37
 */

namespace common\models\db;


use common\components\tools\ArrayHelper;

class TestTree extends \common\models\db\second\TestTree
{
    public function rules()
    {
        $rules = parent::rules();
//        foreach ($rules as $k => $v){
//            if ($v[1] == 'required'){
//                if (is_array($v[0])){
//                    $rules[$k][0] = array_diff($rules[$k][0], ['lft', 'rgt', 'lvl']);
//                }
//            }
//        }
        $_r = [
            ['other1', 'safe'],
        ];
        $rules = ArrayHelper::merge($rules, $_r);
        return $rules;
    }
}